import axiosIntance from "../axiosInstance";

const planInfo= {
    getAllList() {
        return axiosIntance.get("/plan-info/getAllList");
    },
    getListByPage({pageIndex,mid,hid,start_time,end_time}) {
        return axiosIntance.get("/plan-info/getListByPage",{
            params:{
                pageIndex,mid,hid,start_time,end_time
            }
        });
    },
    update(id) {
        return axiosInstance.patch(`/plan-info/update/${id}`)
    },
    deleteById(id) {
        return axiosInstance.delete(`/plan-info/delete/${id}`)
    },
}

export default planInfo;